﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Company.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<FzWeb.Models.Person_Resume>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    人才信息库
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="rightinfo">
        <div class="tempter2 empgn2">
            <p>
                人才信息库</p>
            <table border="0" cellspacing="0" cellpadding="0" width="964" align="center">
                <tbody>
                    <tr>
                        <td height="3" width="964" colspan="6">
                        </td>
                    </tr>
                    <tr height="22">
                        <td height="32" colspan="6">
                            <table class="listtb" border="0" cellspacing="0" cellpadding="0" width="100%">
                                <tr>
                                    <td class="sbox" bgcolor="#f9fcfd" height="32">
                                        &nbsp;
                                    </td>
                                    <td bgcolor="#f9fcfd">
                                        <strong>简历编号</strong>
                                    </td>
                                    <td bgcolor="#f9fcfd">
                                        <strong>欲求职位</strong>
                                    </td>
                                    <td bgcolor="#f9fcfd">
                                        <strong>职位性质</strong>
                                    </td>
                                    <td bgcolor="#f9fcfd" align="middle">
                                        <strong>年龄</strong>
                                    </td>
                                    <td bgcolor="#f9fcfd" align="middle">
                                        <strong>专业</strong>
                                    </td>
                                    <td bgcolor="#f9fcfd" align="middle">
                                        <strong>目前身份</strong>
                                    </td>
                                    <td bgcolor="#f9fcfd" align="middle">
                                        <strong>更新时间</strong>
                                    </td>
                                    <td bgcolor="#f9fcfd" align="middle">
                                        <strong>可执行操作</strong>
                                    </td>
                                </tr>
                                <% foreach (var item in Model)
                                   { %>
                                <tr>
                                    <td class="sbox" height="27" width="45">
                                        <%= Html.CheckBox("cb", new { value = item.ResumeId })%>
                                    </td>
                                    <td style="text-indent: 1em">
                                        <a href="#" target="_blank">
                                            <img border="0" align="absMiddle" src="/content/images/boy1.gif" width="15" height="15">
                                            <%= item.ResumeId %></a>
                                    </td>
                                    <td style="text-indent: 1em">
                                        <a style="color: #0a246a" href="#" target="_blank">
                                            <%= item.Person_WillJob==null?"":item.Person_WillJob.PostClassName%></a>
                                    </td>
                                    <td style="text-indent: 1em">
                                        <a style="color: #0a246a" href="#" target="_blank">
                                            <%= item.Person_WillJob==null?"":item.Person_WillJob.JobType%></a>
                                    </td>
                                    <td align="middle">
                                        <%= item.Person.Birthday==null?0: DateTime.Now.Year - item.Person.Birthday.Value.Year %>
                                    </td>
                                    <td align="middle">
                                        <a href="#">
                                            <%= item.Person.Special %></a>
                                    </td>
                                    <td align="middle">
                                        <a href="#" target="_blank">
                                            <%= item.Person.WorkStatus %></a>
                                    </td>
                                    <td style="font-family: '宋体'; font-size: 14px" align="middle">
                                        <a href="#" target="_blank">
                                            <%= item.RefleshTime %></a>
                                    </td>
                                    <td align="middle">
                                        <span style="color: #acacac"><span><a href="#">
                                            <img border="0" src="/content/images/resume.btn.apply.gif" width="62" height="20" onclick="interviewPerson(<%= item.ResumeId %>)"></a></span></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="45" height="27">
                                        &nbsp;
                                    </td>
                                    <td style="color: #acacac" colspan="8">
                                        <strong>学历：</strong><%= item.Person.Certificate %><strong style="margin-left: 30px">月收入要求：</strong><%= item.Person_WillJob==null?"":item.Person_WillJob.SalaryMin+"-"+item.Person_WillJob.SalaryMax%><strong
                                            style="margin-left: 30px">求职地区：</strong><%= item.Person_WillJob==null?"":item.Person_WillJob.Location %>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="45" height="27" style="border-bottom: 1px dotted #efefef;">
                                        &nbsp;
                                    </td>
                                    <td class="dlink" style="border-bottom: 1px dotted #efefef; line-height: 2em" colspan="8">
                                        <a onfocus="this.blur();" href="#" target="_blank">
                                            <%= item.Person.SelfOpinion %></a>
                                    </td>
                                </tr>
                                <% } %>
                            </table>
                        </td>
                    </tr>
                </tbody>
            </table>
            <table style="padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 9px"
                border="0" cellspacing="0" cellpadding="0" width="964" align="center">
                <tbody>
                    <tr>
                        <td width="26">
                            <input onclick="CheckAll(this.name,'cb')" type="checkbox" id="ckbAll" name="ckbAll"></div>
                        </td>
                        <td class="menubut">
                            全选
                            <input value="邀请选定的人才" type="button" class="dialog_link" >
                            <input value="收藏选定的人才" type="button" name="btnFavorite" onclick="AddCompanyResumeLib()">
                        </td>
                        <td align="middle">
                            <%= Html.RenderPagerBar(Convert.ToInt32(ViewData["pageIndex"]),Convert.ToInt32(ViewData["pageCount"])) %>
                            &nbsp;&nbsp;
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div id="ShowMemoJobPost" class="dialog" title="选择岗位">
        <%foreach (var post in ViewData["PostList"] as List<FzWeb.Models.Post>)
          {%>
        <%=Html.RadioButton("PostId",post.PostId,false) %><%=post.Name %>(<%= post.Type %>)<br />
        <%}                                           
        %>
    </div>

    <script type="text/javascript">
        $(function() {
            var currentId = 0;
            // Dialog
            $('.dialog').dialog({
                autoOpen: false,
                width: 200,
                height: 250,
                modal: true,
                buttons: {
                    "确定": function() {
                    InterView(currentId, $("input[name='PostId'][type=radio][checked]").val());
                        currentId = 0;
                        $(this).dialog("close");
                    },
                    "取消": function() {
                        $(this).dialog("close");
                    }
                }
            });

            // Dialog Link
            $('.dialog_link').click(function() {
                $('#ShowMemoJobPost').dialog('open');
                return false;
            });
        });
        function interviewPerson(id) {
            currentId = id;
            $('#ShowMemoJobPost').dialog('open');
        }
    </script>

</asp:Content>
